export const switchDarkTheme = (isDark: boolean = true): boolean => {
    const body = document.body;
    isDark ? body.setAttribute('theme-mode', 'dark') : body.removeAttribute('theme-mode');
    // if (body.hasAttribute('theme-mode')) {
    //     body.removeAttribute('theme-mode');
    // } else {
    //     body.setAttribute('theme-mode', 'dark');
    // }
    return isDark;
}